<?php include('post-safe.php');?>
<div id="comment-place">
	<h3 class="boxTitle">发表评论</h3>	
	<div id="comment">
		<form id="frmSumbit" target="_self" method="post" action="{$article.CommentPostUrl}">
			{if $user.ID>0}
			<input type="hidden" name="inpName" id="inpName" value="{$user.Name}" />
			<input type="hidden" name="inpEmail" id="inpEmail" value="{$user.Email}" />
			<input type="hidden" name="inpHomePage" id="inpHomePage" value="{$user.HomePage}" />
			{else}
			<div class="three">
				<div class="item">
					<label for="inpName">昵称：*</label>
					<div class="input">
						<input type="text" name="inpName" id="inpName" class="text" value="{$user.Name}" tabindex="1"/>
					</div>
				</div>
				<div class="item">
					<label for="inpEmail">邮箱：</label>
					<div class="input">
						<input type="text" name="inpEmail" id="inpEmail" class="text" value="{$user.Email}" placeholder="保密" tabindex="2"/>
					</div>
				</div>
				<div class="item">
					<label for="inpHomePage">网址：</label>
					<div class="input">
						<input type="text" name="inpHomePage" id="inpHomePage" class="text" value="{$user.HomePage}" tabindex="3"/>
					</div>
				</div>
			</div>			
			{/if}
			<div class="item">
				<label for="txaArticle">内容：</label>
				<div class="input">
					<textarea name="txaArticle" class="text" id="txaArticle" tabindex="5"></textarea>
				</div>
			</div>
			{if $user.ID < 1 && $option['ZC_COMMENT_VERIFY_ENABLE']}
			<div class="item verify">
				<label for="inpVerify">验证码：*</label>
				<div class="input">
					<input type="text" name="inpVerify" id="inpVerify" class="text" value="" size="28" tabindex="4" placeholder="输入显示的验证码" />
					<img src="{$article.ValidCodeUrl}" alt="验证码" title="点击更换验证码" onclick="javascript:this.src='{$article.ValidCodeUrl}&amp;tm='+Math.random();"/>
				</div>
			</div>
			{/if}
			<div class="item">
				<input type="submit" name="submit" class="submit" value="提交评论" tabindex="6" onclick="return zbp.comment.post()"/>
				<a rel="nofollow" id="cancel-reply" href="#divCommentPost" style="display:none;">取消回复</a>
			</div>
		</form>
	</div>
</div>